package org.acme.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.acme.po.SysReview;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface SysReviewDao extends BaseMapper<SysReview> {

    @Select("select * from sys_review where pid is null")
    public List<SysReview> getRootList();

    @Select("select * from sys_review where pid =#{pid}")
    public List<SysReview> getListByPId(@Param("pid") String pid);
}
